package sunyu.tools.mongodb;

import com.mongodb.client.MongoDatabase;

/**
 * MongoDB操作回调
 *
 * @author 孙宇
 */
public interface DatabaseCallback<T> {

    T doInDatabase(MongoDatabase database) throws Throwable;

}
